﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using EntityDaoLibrary;
using System.Data;

namespace BusinessRules
{
    public class HisYPInfoRules
    {
        public DataSet GetYPInfo(string idm)
        {
            IDataAccess data = DataAccessFactory.instance.CreateDataAccess();
            data.Open();
            try
            {
                HisYPInfoDAO dao = new HisYPInfoDAO(data);
                return dao.GetYPInfo(idm);
            }
            catch (Exception e)
            {

                throw new Exception(e.Message, e);
            }
            finally
            {
                data.Close();
            }
        }
    }
}
